#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int nn = 0;
  while (n != 0) {
    int ge = n % 10;
    nn = nn * 10 + ge;
    n = n / 10;
  }
  if (n == nn)
    cout << "Yes";
  else
    cout << nn;
  return 0;
}